﻿namespace Bilibili.Model.Video
{
    public sealed class PagesModel
    {
        public long cid { get; set; }
        public string from { get; set; }
        public string has_alias { get; set; }
        public string link { get; set; }
        public string page { get; set; }
        public string part { get; set; }
        public int duration { get; set; }
        public string View
        {
            get
            {
                if (part.Length == 0)
                    return page;
                else
                    return page + " " + part;
            }
        }
        public string rich_vid { get; set; }
        public string vid { get; set; }
        public string weblink { get; set; }
        public bool IsDowned
        {
            get
            {
                return false;
            }
        }
    }
}